<template>
  <view class="field-label field-form-item">
    <u-form-item :label="label" :required="required" :prop="prop">
      <slot />
    </u-form-item>
</view>
</template>

<script>
export default {
  name: 'fieldInput',
  props: {
    label: {
      type: String
    },
    required: {
      type: Boolean,
      default: false
    },
    prop: {
      type: String
    }
  },
  mounted() {
    // console.log(this.label, this.disabled, this.readonly);
  }
};
</script>